package org.jwd.start.config;

import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

/**
 * @author vizz
 * @since 2022/5/14 0:50
 * 这里配置应用的基本属性
 */
@Configuration
public class AppConfig {
    private static final Logger log = org.slf4j.LoggerFactory.getLogger(AppConfig.class);

    @Value("${sprout.app-name:}")
    private String appName;

    @PostConstruct
    public void init() {
        log.info("创建应用成功，应用名为：" + appName);
    }

}
